package com.snj.visangedu.news;

import android.graphics.Bitmap;

public class News {
	
	String no = "";
	String filename = "";
	String originalfilename = "";
	Bitmap img_cover = null;
	
	public News(String _no, Bitmap coverimg)
	{
		img_cover = coverimg;
		no = _no;
	}
	
	public News(String _no, String _filename, String _originalfilename)
	{
		no = _no;
		filename = _filename;
		originalfilename = _originalfilename;
	}
	
	public void SetNewsImage(Bitmap img)
	{
		img_cover = img;
	}
	
	public Bitmap GetNewsImage()
	{
		return img_cover;
	}
	
	public String GetNo()
	{
		return no;
	}
	
	public String GetFilename()
	{
		return filename;
	}
	
	public String GetOriginalFileName()
	{
		return originalfilename;
	}
	
	public void Clear()
	{
		if(img_cover != null)
			img_cover.recycle();
		img_cover = null; 
	}
}
